package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Random;

@Component
@Slf4j
public class TaskTest {

    // @Scheduled(cron = "0/5 * * * * ?")
    public void testExec(){
        Random r = new Random();
        int a = r.nextInt(1000000000);
        log.info(a+"====================================   执行任务   ====================================");
    }
}
